resource "google_secret_manager_secret" "secret-basic" {
  secret_id = "<%= ctx[:vars]['secret_id'] %>"
  
  labels = {
    label = "my-label"
  }

  replication {
    automatic = true
  }
}


resource "google_secret_manager_secret_version" "<%= ctx[:primary_resource_id] %>" {
  secret = google_secret_manager_secret.secret-basic.id

  secret_data = "<%= ctx[:vars]['data'] %>"
}
